<?php
include("include/config.inc.php");
if(!isset($_SESSION['s_activId']))
{
  $_SESSION['s_urlRedirectDir'] = $_SERVER['REQUEST_URI'];
  header("Location:checkLogin.php");
}
else
{	
  $query1 = "DELETE FROM incoming
	            WHERE incomingId = ".$_REQUEST['incomingId'];
	$result1= mysql_query($query1);
	
  $query2 = "DELETE FROM incomingdetail
              WHERE incomingId = ".$_REQUEST['incomingId'];
  $result2= mysql_query($query2);		
	header("Location:planingList.php");
}
?>